package com.example.sfm.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sfm
 * @since 2025-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("awards_punishments")
@Schema(name="AwardsPunishments对象",description = "学生奖惩")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AwardsPunishments implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "学生ID")
    private Integer studentId;

    @Schema(description = "奖惩名称")
    private String name;

    @Schema(description = "类型（0=奖励, 1=惩罚）")
    private Integer type;

    @Schema(description = "奖惩等级（0=一般, 1=严重）")
    private Integer level;

    @Schema(description = "原因")
    private String reason;

    @Schema(description = "颁发日期")
    private LocalDate issuedDate;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;


}
